﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="HomeLink.ascx.cs" Inherits="Administrator_Controls_HomeLink" %>
<!-- table -->
<div class="box">
    <!-- box / title -->
    <div class="title">
        <h5 runat="server" id="title">
            Home link</h5>
    </div>
    <div id="divMessage" runat="server">
    </div>
    <div class="first-action">
        <div class="button">
           <%-- <a href="default.aspx?control=homelinkadd">
                <input type="button" value="Thêm Mới" /></a>--%>
        </div>
    </div>
    <!-- end box / title -->
    <div class="table">
        <table id="table-3">
            <thead>
                <tr>
                    <th class="smaller">
                        STT
                    </th>
                    <th class="medium">
                        Hình ảnh
                    </th>
                    <th>
                        Tiêu đề
                    </th>
                    <th>
                        Link
                    </th>
                    <%--<th class="small">
                        Sửa
                    </th>--%>
                    <%--<th class="selected last">
                        <input type="checkbox" class="checkall" />
                    </th>--%>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rptData" runat="server">
                    <ItemTemplate>
                        <tr id='<%#Container.ItemIndex + 1 %>'>
                            <td class="right">
                                <%#Container.ItemIndex+1 %>
                            </td>
                            <td>
                                <img src='<%#Eval("IMAGE")%>' alt="" />
                            </td>
                            <td>
                                <%#Eval("TITLE")%>
                            </td>
                            <td align="center">
                                <%#Eval("LINK")%>
                            </td>
                            <%--<td align="center">
                                <a href="default.aspx?control=homelinkedit&id=<%#Container.ItemIndex + 1 %>" class="edit"
                                    title="Chỉnh sửa">&nbsp;&nbsp;&nbsp;</a>
                            </td>--%>
                            <%--<td align="center" class="last">
                                <input id="chkBox" type="checkbox" value='<%#Container.ItemIndex + 1 %>' class="item"
                                    runat="server" />
                            </td>--%>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
        <div class="action">
           <%-- <asp:DropDownList ID="ddlAction" runat="server" OnSelectedIndexChanged="ddlAction_SelectedIndexChanged"
                AutoPostBack="true" CssClass="selectwidth">
                <asp:ListItem Value="0" class="folder-open" Text="---Chọn hành động---"></asp:ListItem>
                <asp:ListItem Value="1" class="locked" Text="Xóa"></asp:ListItem>
            </asp:DropDownList>--%>
            <div class="button">
              <%--  <a href="default.aspx?control=homelinkadd">
                    <input type="button" value="Thêm Mới" /></a>--%>
            </div>
        </div>
    </div>
</div>
<!-- end table -->
